pkgname=openeuler_docker
pkgver=1.0
pkgrel=1
pkgdesc="openeuler docker image"
arch=('i386' 'x86_64')
url="https://repo.openeuler.org/openEuler-20.03-LTS-SP1/docker_img"
license=('GPL')
source=("https://repo.openeuler.org/openEuler-20.03-LTS-SP1/docker_img/aarch64/openEuler-docker.aarch64.tar.xz")
md5sums=('ad1149bf617ce6effb0a2eaf0cf692ef')

handle_docker_image()
{
	docker load < openEuler-docker.aarch64.tar.xz
	docker save -o openeuler-20.03-lts-v1.tar openeuler-20.03-lts-sp1:latest
}

package()
{
	handle_docker_image
	mkdir -p "$pkgdir/lkp/benchmarks/${pkgname}"
	cp "$srcdir/openeuler-20.03-lts-v1.tar" "$pkgdir/lkp/benchmarks/${pkgname}"
}
